<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="js/ec.js"></script>
    <style>
        .align {
            width: 250px;
            border-radius: 8px;
            border: 1px solid #ccc;
            background: #fff;
            display: none;
            text-align: center;
            font-size: 14px;
            z-index: 999;
            overflow: hidden;
            line-height: 18px;
        }

        .mess .pic {
            width: 32px;
            height: 32px;
            float: left;
            margin-left: 4%;
            margin-right: 2%;
            margin-top:2%;;
        }

        .mess_success {
            background: url(images/index/icon.png) no-repeat -23px -66px;
        }

        .mess_error {
            background: url(images/index/icon.png) no-repeat -23px -33px;
        }

        .mess_warn {
            background: url(images/index/icon.png) no-repeat -23px 0px;
        }

        .align p {
            float: left;
            color: #333;
            width: 78%;
            font-family:"微软雅黑";
        }
    </style>
</head>
<body>
<input type="button" value="弹窗" class="alignMid">
<input type="button" value="弹窗1" class="alignMid1">
<div class="align">
    <div class="mess">
        <div class="pic mess_success mess_warn mess_error "></div>
        <p>信信息 的广泛信信</p>
    </div>
</div>
<script>
    $(function () {
        $(".alignMid").click(function (e) {
            if ($(".align").is(":hidden")) {
                $(".align").fadeIn(500);
                e ? e.stopPropagation() : event.cancelBubble = true;
            }
        });
        $(".alignMid1").click(function () {alert(1111)
            $.layer({
                shade: [0.5, '#EEE'],
                area: ['300px', '150px'],
                border: [1, 1, '#ccc'],
                title: ['提示', "background:#FF4242;color:#FFFFFF;"],
                btn: ['确认','暂不打款'],
                yes: function(){
                    layer.msg('重要');
                }, no: function(){
                    layer.msg('奇葩');
                },
                dialog: {
                    msg: '确认打款？',
                    btns: 2,
                    type: -1,

                }

            });
        });
        $(document).click(function () {
            $(".align").fadeOut();
        });
    });
</script>
</body>
</html>